﻿using System;
using SharpSqlAnalyzer.pp.processor;
using SharpSqlAnalyzer.pp.stmtformatter.type;
using SharpSqlAnalyzer.pp.stmtformatter.type.comm;

namespace SharpSqlAnalyzer.pp.stmtformatter.builder.comm
{
	// Token: 0x02000216 RID: 534
	public class AlterTableStmtFormatterBuilder : AbstractStmtFormatterBuilder
	{
		// Token: 0x06001251 RID: 4689 RVA: 0x00318948 File Offset: 0x00316B48
		protected internal override AbstractStmtFormatter newInstanceFormatter()
		{
			return new AlterTableStmtFormatter();
		}

		// Token: 0x06001252 RID: 4690 RVA: 0x0031894F File Offset: 0x00316B4F
		protected internal override void initSpecialProcessorForFormatter(AbstractStmtFormatter formatterArg)
		{
			AlterTableStmtFormatter alterTableStmtFormatter = formatterArg as AlterTableStmtFormatter;
			alterTableStmtFormatter.addSpecialProcessor(ProcessorFactory.createCapitalisationProcessor(this.Option));
			alterTableStmtFormatter.addSpecialProcessor(ProcessorFactory.createCombineWhitespaceAndClearReturnProcessor(this.Option));
			alterTableStmtFormatter.addItemListProcessor(ProcessorFactory.createAlterTableOptionAlignProcessor(this.Option, true));
		}
	}
}
